<?php

namespace paper\facade;

use paper\Container;
use paper\http\RoutingRules;

class Route
{
    /**
     * @return RoutingRules
     */
    private static function routingRules(): RoutingRules
    {
        return Container::getInstance()->get(RoutingRules::class);
    }

    public static function any($pattern, $to): RoutingRules
    {
       return self::routingRules()->any($pattern, $to);
    }
}